package com.csust.travel.mapper;

import com.csust.travel.entity.Rating;
import com.csust.travel.entity.TransactionReport;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface RatingMapper {

    @Select("SELECT rating as name,count(*) as value FROM rating_table GROUP BY `name`")
    List<Rating> findNameAndNumber();
}
